n = int(a)
while n > 0:
    m = n%10
    if mn_a_2 > m:
        mn_a_2 = m
    if mx_a_2 < m:
        mx_a_2 = m
    if m == 0:
        count_zero_2 += 1
    if m % 2 == 0:
        count_chet_2 += 1
    n //= 10
    
print(mn_a_1, mx_a_1, count_zero_1, count_chet_1)
print(mn_a_2, mx_a_2, count_zero_2, count_chet_2)

print("Число кратно 3:", "Да" if n %3 == 0 else"нет")
print("Число чётное:", "Да" if n %2 == 0 else"нет")